package com.yzj.micro.demo.cart.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yzj.demo.common.pojo.po.CartPO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CartMapper extends BaseMapper<CartPO> {
   /* @Insert("insert into cart_tbl(user_id,product_code,count) values(#{userId},#{productCode},#{count})")
    public int insert();
    @Select("select * from cart_tbl where user_id=#{userId}")
    public List<CartPO> selectByUserId(Integer userId);*/
}
